#!/bin/bash
processes=`ps -e | wc -l`
ports=`lsof -i | wc -l`


if [ $processes -gt 30 ]
then 
 	echo Processes are greater than 30
fi

if [ $ports -gt 5 ]
then 
 	echo More than 5 ports are open
fi
